#include "ClientHandler.h"
#include <string>
#include "Mutex.h"

ClientHandler:: ClientHandler(Socket *s):Thread(){
	
					socket =s;	
}				
void ClientHandler:: main(){
	
		std::string linea;
		while(linea.compare("stop")!=0){
				int tam= socket->sincroniza();
			     socket->recv(linea,tam);
				 std::cout<<linea<<std::endl;
			     std::string mando("Prueba");
		}	
}
